Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make 'option_value' for dnsmasq optional #960

Merged
merged 2 commits into from
Jan 2, 2023
Merged

Conversation

e4t
Copy link
Contributor

@e4t e4t commented Jul 9, 2022

To support value-less dnsmasq options ('no-hosts') this change set makes option_value optional in which case option_name is inserted in the dnsmasq.conf without traling '='.
While this change invalidates the separation into 'name' and 'value' to some extend, it retains compatibility.
An update to the documentation and test cases are also included.

e4t added 2 commits July 9, 2022 19:48
There are a number of dnsmasq options - like 'no-hosts' that
do not require a value.
This change will make sure that an entry:

resource "libvirt_network" "my_net" {
...
  dnsmasq_options {
    options {
       option_name = "no-hosts"
       }
  }
}

will become:

no-hosts

in the corresponding dnsmasq.conf file.

Signed-off-by: Egbert Eich <eich@suse.com>
@e4t
Copy link
Contributor Author

e4t commented Sep 26, 2022

Hi @dmacvicar could you have a look at this? Thanks!

@dmacvicar
Copy link
Owner

I will look into this after I merge the SDK v2 update. Thanks.

@dmacvicar dmacvicar merged commit 9260f4c into dmacvicar:main Jan 2, 2023
@dmacvicar
Copy link
Owner

Thanks for the PR

@e4t
Copy link
Contributor Author

e4t commented Jan 2, 2023

Thanks for the PR

@dmacvicar Thanks for merging! - A belated Xmas present ;)
... and Happy New Year to you!

dmacvicar pushed a commit to jimnydev/terraform-provider-libvirt that referenced this pull request Sep 28, 2024
There are a number of dnsmasq options - like 'no-hosts' that
do not require a value.
This change will make sure that an entry:

resource "libvirt_network" "my_net" {
...
  dnsmasq_options {
    options {
       option_name = "no-hosts"
       }
  }
}

will become:

no-hosts

in the corresponding dnsmasq.conf file.

Signed-off-by: Egbert Eich <eich@suse.com>

* Update documentation to reflect change in dnsmasq options handling

Signed-off-by: Egbert Eich <eich@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants